package com.platform.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.platform.common.annotation.Excel;
import com.platform.common.core.domain.TreeEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * 地址资料对象 base_subscriber
 * 
 * @author wangqi
 * @date 2020-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("base_subscriber")
public class BaseSubscriber extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    private Long subscriberId;

    /** 地址全称 */
    @NotBlank(message = "地址全称不能为空")
    @Excel(name = "地址全称")
    private String subscriberName;

    /** 地址简称 */
    @NotBlank(message = "地址简称不能为空")
    @Excel(name = "地址简称")
    private String subscriberShort;

    /** 计费面积 */
    @Excel(name = "计费面积")
    private BigDecimal subscriberCharge;

    /** 建筑面积 */
    @Excel(name = "建筑面积")
    private BigDecimal subscriberBuild;


    /** 祖级列表 */
    private String ancestors;

    /** 地址类型 */
    @Excel(name = "地址类型")
    private String subscriberType;

    /** 用户属性 */
    @Excel(name = "用户属性")
    private String subscriberParty;

    /** 用户号 */
    @Excel(name = "用户号")
    private String subscriberPartyno;

    /** 通道号 */
    @Excel(name = "通道号")
    private Long subscriberNum;

    /** 删除标志（0正常1删除） */
    @TableLogic
    private String delFlag;
}
